import {  post,get } from "./axios";

export const userLogin = (data) => post("login", data); // 登录
//公众号菜单管理
export const MenuList = (data) => get("wechatMenuList", data); 
export const MenuInfo = (data) => get("wechatMenuInfo", data); 
export const MenuAdd = (data) => post("wechatMenuAdd", data); 
export const MenuDel = (data) => get("wechatMenuDel", data); 
export const updateWxMenu = (data) => get("updateWxMenu", data); 

//ai关键词type
export const WordTypeList = (data) => get("KeyWordTypeList", data); 
export const WordTypeWordAdd = (data) => post("KeyWorTypedAdd", data); 
export const WordTypeWordInfo = (data) => post("KeyWorTypedInfo", data); 
//ai关键词
export const WordList = (data) => get("KeyWordList", data); 
export const WordAdd = (data) => post("KeyWordAdd", data); 
export const KeyWordBatch = (data) => post("KeyWordBatch", data); 

//权限接口
export const PowerList = (data) => get("AdminPowerList", data); 
export const PowerInfo = (data) => get("AdminPowerInfo", data); 
export const PowerAdd = (data) => post("AdminPowerAdd", data); 
export const PowerDel = (data) => get("AdminPowerDel", data); 
//管理员角色 管理 
export const RoleList = (data) => get("AdminRoleList", data); 
export const RoleInfo = (data) => get("AdminRoleInfo", data); 
export const RoleAdd = (data) => post("AdminRoleAdd", data); 
export const RoleDel = (data) => get("AdminRoleDel", data); 
export const RolePower = (data) => get("AdminRolePower", data); 

export const AccountList = (data) => get("AdminUserList", data); //  管理员用户列表
export const AccountInfo = (data) => get("AdminUserInfo", data); // 用户详情 
export const AccountAdd = (data) => post("AdminUserAdd", data); // 添加用户
export const AccountDel = (data) => get("AdminUserDel", data); // 删除用户 
export const EditPassWord = (data) => get("AdminUserEditPassWord", data);